import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import router from './router/index'
import store from './store/index'  
import moment from 'moment'
import bus from './utils/bus'
// 引入微信SDK
import wx from 'weixin-js-sdk'
// rem适配
import './utils/flexible'

// 全局自动注册组件
import './global'
 
Vue.prototype.wx = wx
Vue.prototype.store = store
Vue.prototype.$bus = bus
Vue.prototype.$axios = axios
Vue.prototype.$moment = moment

// 手机调试工具、
// import VConsole from 'vconsole'
// if (process.env.NODE_ENV === 'production') {
//   new VConsole()
// } 

// 引入 FastClick
// import FastClick from 'fastclick'

// 解决移动端点击 300毫秒延迟
// FastClick.attach(document.body)
Vue.config.productionTip = false

import { Swipe, SwipeItem,NoticeBar,Uploader,Toast, Overlay, List, DropdownMenu, DropdownItem, DatetimePicker } from 'vant'; 
Vue.use(Swipe).use(SwipeItem).use(NoticeBar).use(Uploader).use(Toast).use(Overlay).use(List).use(DropdownMenu).use(DropdownItem).use(DatetimePicker).use(moment)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
